package com.dy.video.service;

import com.dy.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "service-login")
public interface UserFeignClient {
    @PostMapping("/user/{token}")
     int getUserByToken(@PathVariable("token") String token);

    //获取登陆人全部信息
    @GetMapping("/user/getLoginUser/{satoken}")
    User getLoginUser(@PathVariable("satoken") String satoken);

    @PostMapping("/user/uid/{id}")
    User getUserById(@PathVariable("id") int id);
}
